home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2004 March / PCWMAR04.iso / Software / Trial / ReadIris Pro 9 / RI9ProDemo.exe / data1.cab / F_Common_9 / binary / cidfnmap < prev    next >
Encoding:
Text File  |  2003-12-13  |  6.6 KB  |  158 lines

  1. %!
  2. % Copyright (C) 2001 Masatake YAMATO, Taiji Yamada and gs-cjk project
  3. %
  4. % This file is part of GNU Ghostscript.
  5. % GNU Ghostscript is distributed in the hope that it will be useful, but
  6. % WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. % to anyone for the consequences of using it or for whether it serves any
  8. % particular purpose or works at all, unless he says so in writing. Refer
  9. % to the GNU General Public License for full details.
  10. % Everyone is granted permission to copy, modify and redistribute GNU
  11. % Ghostscript, but only under the conditions described in the GNU General
  12. % Public License.  A copy of this license is supposed to have been given
  13. % to you along with GNU Ghostscript so you can know your rights and
  14. % responsibilities.  It should be in a file named COPYING.  Among other
  15. % things, the copyright notice and this notice must be preserved on all
  16. % copies.
  17.  
  18. % $Id: CIDFnmap,v 1.1.4.1 2002/04/02 14:47:42 mpsuzuki Exp $
  19. % CIDFnmap - sample CID-keyed font catalog for Ghostscript.
  20.  
  21. % ----------------------------------------------------------------
  22.  
  23. % This file is a catalog of CID-keyed fonts, TrueType fonts (TTF), and also
  24. % TrueType Collection fonts (TTC) known to Ghostscript.
  25. %
  26. % There are two ways to make a CID-keyed font loaded automatically when named:
  27. % C1. Put the CID-keyed font as a resource file to /Resource/CIDFont(*1).
  28. %    (*1) A path concatenated with GenericResourceDir defined in 
  29. %        gs_res.ps and "CIDFont". The default value of GenericResourceDir 
  30. %        is "/Resource/".
  31. % C2. Put the CID-keyed font file to Ghostscript's font path(*2)
  32. %    and write an entry for the CID-keyed font to this catalog.
  33. %    (*2) Somewhere in Ghostscript font search path, which is generally
  34. %        /usr/local/share/ghostscript/fonts. See output of `gs -h` or Use.htm,
  35. %        Ghostscript's document.
  36. %
  37. % There are two ways to make a TrueType font loaded automatically when named:
  38. % T1. Write a wrapper script file for the TrueType font and put the
  39. %    wrapper file to /Resource/CIDFont. The wrapper has to translate a
  40. %    TrueType font file to Type 2 CID-keyed on demand. Some examples of the
  41. %    wrapper file named "CIDFontName" as follows:
  42. %    
  43. %    (e1) TTF translated to Type 2 CID-keyed font
  44. %    %!PS-Adobe-3.0 Resource-CIDFont
  45. %    %%BeginResource: CIDFont (CIDFontName)
  46. %    /CIDFontName (filename.ttf) .openttcidfont
  47. %    dup length dict begin {def} forall currentdict end
  48. %    /CIDFont defineresource pop
  49. %    %%EndResource
  50. %    %%EOF
  51. %    
  52. %    (e2) TTC with an index translated to Type 2 CID-keyed font
  53. %    %!PS-Adobe-3.0 Resource-CIDFont
  54. %    %%BeginResource: CIDFont (CIDFontName)
  55. %    /CIDFontName (filename.ttc) 2 .openttcidfont
  56. %    dup length dict begin {def} forall currentdict end
  57. %    /CIDFont defineresource pop
  58. %    %%EndResource
  59. %    %%EOF
  60. %
  61. %    (e3) TTC with an index and a name of RO(Registry-Ordering)-Code
  62. %    %!PS-Adobe-3.0 Resource-CIDFont
  63. %    %%BeginResource: CIDFont (CIDFontName)
  64. %    /CIDFontName (filename.ttc) 2 /Adobe-GB1-Unicode .openttcidfont
  65. %    dup length dict begin {def} forall currentdict end
  66. %    /CIDFont defineresource pop
  67. %    %%EndResource
  68. %    %%EOF
  69. %
  70. %    for details about the names of RO-Code written in (e3), see below.
  71. %
  72. % T2. Put the CID-keyed font file to Ghostscript's font path(*2)
  73. %    and write an entry for the TrueType font to this catalog.
  74.  
  75. % The Syntax of CIDFnmap is very similar to Fontmap.
  76. % Each CID-keyed font has an entry consisting of three items:
  77. %
  78. %    i1. The name by which the CID-keyed font is known inside Ghostscript
  79. %    (a Ghostscript name preceded by a `/', or a string enclosed
  80. %    in parentheses).  This is used to find the file from which
  81. %    a font of a given name should be loaded.
  82. %
  83. %    i2. Information depending on whether this is a real CID-keyed font or a
  84. %    CID-keyed font alias:
  85. %
  86. %        - For real CID-keyed fonts, the name of the CID-keyed font
  87. %        file (a Ghostscript string, enclosed in parentheses).
  88. %        The filename should include the extension if the CID-keyed font
  89. %         name has.
  90. %
  91. %        - For CID-keyed font aliases, the name of the CID font
  92. %        which should be used when this one is requested,
  93. %        preceded by a `/'. Note that an alias name cannot be enclosed
  94. %        in parentheses.
  95. %
  96. %    i3. At least one space or tab, and a terminating semicolon.
  97. %
  98. % Each CID-keyed font has an entry consisting of three essential items and
  99. % two optional items. The three essential items are the same to the items of
  100. % CID-keyed Font. Two optional items are put between i2 and i3.
  101. % Two optional items are:
  102. %
  103. %    i4. the number that specifies TTC font index
  104. %
  105. %       i5. the name of CIDs mapping to Codes
  106. %         ``The kind of CIDs mapping to Codes'' is listed as follows:
  107. %
  108. %    <RO-Code>        <Comment>
  109. %    /Adobe-CNS1-Big5    Traditional Chinese, for Big5 TrueType fonts
  110. %    /Adobe-CNS1-Unicode    Traditional Chinese, for Unicode TrueType fonts
  111. %    /Adobe-CNS1        Traditional Chinese, for TrueType fonts (*3)
  112. %    /Adobe-GB1-PRC        Simplified Chinese, for PRC TrueType fonts
  113. %    /Adobe-GB1-Unicode    Simplified Chinese, for Unicode TrueType fonts
  114. %    /Adobe-GB1        Simplified Chinese, for TrueType fonts (*3)
  115. %    /Adobe-Japan1-ShiftJIS    Japanese, for ShiftJIS TrueType fonts
  116. %    /Adobe-Japan1-Unicode    Japanese, for Unicode TrueType fonts
  117. %    /Adobe-Japan1        Japanese, for TrueType fonts (*3)
  118. %    /Adobe-Japan2-Unicode    JIS Supplement, for Unicode TrueType fonts
  119. %    /Adobe-Japan2        JIS Supplement, for TrueType fonts (*3)
  120. %    /Adobe-Korea1-Johab    Korean, for Johab TrueType fonts
  121. %    /Adobe-Korea1-Unicode    Korean, for Unicode TrueType fonts
  122. %    /Adobe-Korea1-Wansung    Korean, for Wansung TrueType fonts
  123. %    /Adobe-Korea1        Korean, for TrueType fonts (*3)
  124. %    (*3) Code is automatically detected by cmap table of a TrueType file.
  125. %       If an optional item for the kind of mapping is omitted, then
  126. %       Code of TTF and RO(Registry-Ordering) of CIDFont are automatically
  127. %       detected by OS/2 table and cmap table of TTF, respectively.
  128.  
  129. % Like Fontmap, .runlibfile is used in CIDFnmap to include other CIDFnmaps.
  130.  
  131. % The following table is actually a Ghostscript data structure.
  132. % If you add new entries, be sure to copy the punctuation accurately;
  133. % in particular, you must leave at least one space or tab between each
  134. % field in the entry.  
  135.  
  136. %(CIDFnmap.Ore) .runlibfile
  137. %(CIDFnmap.ARP) .runlibfile
  138. %(CIDFnmap.Bae) .runlibfile
  139. %(CIDFnmap.Koc) .runlibfile
  140. %(CIDFnmap.Sol) .runlibfile
  141. %(CIDFnmap.Win) .runlibfile
  142.  
  143. %(CIDFnmap.CJK) .runlibfile
  144.  
  145. % native CIDFontName (BIG5) in traditional Chinese
  146. %(CIDFnmap.b5) .runlibfile
  147.  
  148. % native CIDFontName (GB2312) in simplified Chinese
  149. %(CIDFnmap.gb) .runlibfile
  150.  
  151. % native CIDFontName (Shift_JIS) in Japanese
  152. %(CIDFnmap.sj) .runlibfile
  153.  
  154. % native CIDFontName (euc-kr) in Korean
  155. %(CIDFnmap.ksx) .runlibfile
  156.